import request from '@/utils/request'
// import qs from 'qs'

export function login(data) {
  // const info = qs.stringify(data)
  // console.log(info)
  return request({
    url: '/auth/oauth/token?grant_type=password&scope=server&username=admin&password=123456',
    // url: '/oauth/token',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization': 'Basic YXBwOnNlY3JldA=='
    }
  })
}

